package com.item.service;

import com.item.dao.DiaryMapper;
import com.item.dao.model.Diary;
import com.item.dao.model.DiaryExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DiaryService {
    @Autowired
    private DiaryMapper diaryMapper;

    private static final Logger logger = Logger.getLogger(DiaryService.class);

    public int countByExample(DiaryExample example) {
        return this.diaryMapper.countByExample(example);
    }

    public Diary selectByPrimaryKey(String id) {
        return this.diaryMapper.selectByPrimaryKey(id);
    }

    public List<Diary> selectByExample(DiaryExample example) {
        return this.diaryMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.diaryMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Diary record) {
        return this.diaryMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Diary record) {
        return this.diaryMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(DiaryExample example) {
        return this.diaryMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(Diary record, DiaryExample example) {
        return this.diaryMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(Diary record, DiaryExample example) {
        return this.diaryMapper.updateByExample(record, example);
    }

    public int insert(Diary record) {
        return this.diaryMapper.insert(record);
    }

    public int insertSelective(Diary record) {
        return this.diaryMapper.insertSelective(record);
    }
}